home *** CD-ROM | disk | FTP | other *** search
- Hello, world via cout
- enter a char:c = "a"
- enter three integers (short, int, long):first = 123 via dec = 123
- second = 4567 via form = 4567 = 010727 via cout.form = 4567 = 0x11d7
- third = 89012 via hex = 15bb4
- enter a float then a double:first = 123.456
- second = -0.012
- enter 5 characters separated with spaces:first = 1
- rest = 2 3 4 5
-
- Making streams sout and sin...contents of file:
- Thisfilehasonelinetestingoutputstreams.
- creating string-based ostream...
- with contents:
- This is a string-based stream.
- With two lines.
- using it to create string-based istream...
- with contents:
- This is a string-based stream.
- With two lines.
-
- Making filebuf streams fout and fin...contents of file:
- Thisfilehasonelinetestingoutputstreams.
- Final names & states:
- cin: 0
- cout: 0
- cerr: 0
-
- end of test.
-